package cn.my.springHDFS.domain;

import javax.servlet.http.HttpServletRequest;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by Leo on 2017/6/25.
 */
public class Plupload {

    //文件名
    private String name;

    //用户名
    private String userAccount;

    //用户上传路径
    private String userUploadPath;

    //用户上传资料被分解总块数
    private int chunks = -1;

    //当前块数（从0开始计数）
    private int chunk = -1;

    //HttpServletRequest对象，不会自动赋值，需要手动传入
    private HttpServletRequest request;

    //保存文件上传信息，不会自动赋值，需要手动传入
    private MultipartFile multipartFile;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserUploadPath() {
        return userUploadPath;
    }

    public void setUserUploadPath(String userUploadPath) {
        this.userUploadPath = userUploadPath;
    }

    public int getChunks() {
        return chunks;
    }

    public void setChunks(int chunks) {
        this.chunks = chunks;
    }

    public int getChunk() {
        return chunk;
    }

    public void setChunk(int chunk) {
        this.chunk = chunk;
    }

    public HttpServletRequest getRequest() {
        return request;
    }

    public void setRequest(HttpServletRequest request) {
        this.request = request;
    }

    public MultipartFile getMultipartFile() {
        return multipartFile;
    }

    public void setMultipartFile(MultipartFile multipartFile) {
        this.multipartFile = multipartFile;
    }
}
